package com.SinaMicrobloggingAPI.Core.Response;

import java.lang.reflect.Type;
import java.util.List;
import com.SinaMicrobloggingAPI.Model.StatusModel;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

public class PublicTimeLineResponse extends ResponseBase {
	private List<StatusModel> status;

	public List<StatusModel> getStatus() {
		return status;
	}

	public void setStatus(List<StatusModel> status) {
		this.status = status;
	}

	public void ParseResult(String result) {
		// TODO Auto-generated method stub
		Gson gson = new Gson();
		Type listType = new TypeToken<List<StatusModel>>() {
		}.getType();

		status = gson.fromJson(result, listType);
	}
}
